package com.beauty.dressing.module.common.holder;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.beauty.dressing.R;
import com.beauty.dressing.common.base.BaseRecyclerViewHolder;
import com.beauty.dressing.common.bean.BaseBean;
import com.facebook.drawee.view.SimpleDraweeView;
import com.xiaolanba.commonlib.fresco.FrescoUtil;

/**
 * 类描述
 *
 * @author xutingz
 * @email：914603097@qq.com
 */
public class CommentHolder extends BaseRecyclerViewHolder<BaseBean> {
    private SimpleDraweeView mHeaderImg;
    public CommentHolder( Context context, LayoutInflater inflater, ViewGroup viewGroup) {
        super(R.layout.common_comment_item, context, inflater, viewGroup);
    }

    @Override
    public void findView() {
        mHeaderImg = itemView.findViewById(R.id.head_circle_img);
    }

    @Override
    public void bindData(BaseBean bean, int position) {
        FrescoUtil.loadImage(mHeaderImg,"https://tvax1.sinaimg.cn/crop.9.0.493.493.180/005Md5lgly8fgzsynsl39j30e80dp74x.jpg");
    }
}
